home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / zsh / Source / help / read < prev    next >
Encoding:
Text File  |  1993-10-08  |  2.2 KB  |  35 lines

  1.        read [ -rzpqAclneE ] [ -k [ num ] ] [ -un ]  [
  2.               name?prompt  ]  [ name ...  ]
  3.               Read one line and break it into  fields  using  the
  4.               characters  in IFS as separators.  In raw mode, -r,
  5.               a \ at the end of a line does not signify line con-
  6.               tinuation.   With the -q flag read only one charac-
  7.               ter and set name to `y' if this character  was  `y'
  8.               or  `Y'  and  to  `n' otherwise.  If the -k flag is
  9.               given read only one (or num) characters.  If the -z
  10.               flag  is  set,  read  from the editor buffer stack.
  11.               The first field is assigned to the first name,  the
  12.               second  field  to the second name, etc., with left-
  13.               over fields assigned to the last name.  If  the  -e
  14.               or the -E flag is given, the words read are printed
  15.               after the whole line is read. If  the  -e  flag  is
  16.               set,  the words are not assigned to the parameters.
  17.               If the -A flag is set, the first name is  taken  as
  18.               the  name of an array and all words are assigned to
  19.               it.  The -c and -l flags are allowed only if called
  20.               inside  a  function  used for completion (specified
  21.               with the -K flag to compctl). If  the  -c  flag  is
  22.               given,  the  words of the current command are read.
  23.               If the -l flag is given, the whole line is assigned
  24.               as  a  scalar.  Together  with  the  -n  flag these
  25.               options give the number of the word the  cursor  is
  26.               on  and the index of the character the cursor is on
  27.               respectively.  If name is  omitted  then  REPLY  is
  28.               used  for  scalars and reply for arrays.  If -un is
  29.               specified, then input is read from file  descriptor
  30.               n;  if -p is specified, then input is read from the
  31.               coprocess.  If the first argument contains a ?, the
  32.               remainder of this word is used as a prompt on stan-
  33.               dard error when the shell is interactive.  The exit
  34.               status is 0 unless an end-of-file is encountered.
  35.